<?php
$form = array(
		'cid'		=>'{"type":"key"}',
		'uid'		=>'{"type":"none"}',
		'sid'		=>'{"type":"hidden"}',
		'realname'	=>'{"type":"text","size":10}',
		'username'	=>'{"type":"text","readonly":"readonly","class":"readonly"}',
		'phone'		=>'{"type":"text","size":11}',
		'tel'		=>'{"type":"text","size":13}',
		'fax'		=>'{"type":"text","size":13}',
		'qq'		=>'{"type":"number","size":12}',
		'shuxing'	=>'{"type":"select"}',
		'source'	=>'{"type":"select"}',
		'goldcode'	=>'{"type":"text","size":25}',
		'bank'		=>'{"type":"select"}',
		'identity'	=>'{"type":"text"}',
		'xianhuo'	=>'{"type":"checkbox"}',
		'money'		=>'{"type":"select"}',
		'address'	=>'{"type":"text"}',
		'mail'		=>'{"type":"text","size":25}',
		'area'		=>'{"type":"text","ready":"CRM.customer.area(this)","class":"dis_none"}',
		'point'		=>'{"type":"radio"}',
		'addtime'	=>'{"type":"text","readonly":"readonly","class":"readonly"}',
		'import_time'=>'{"type":"text","readonly":"readonly","class":"readonly"}',
		'active_time'=>'{"type":"text","readonly":"readonly","class":"readonly"}',
		'uptime'	=>'{"type":"text","readonly":"readonly","class":"readonly"}',
		'last_time'	=>'{"type":"text","readonly":"readonly","class":"readonly"}',
		'sign_time'	=>'{"type":"text","onClick":"WdatePicker({})"}',
		'sign_status'=>'{"type":"select"}',
		'uqq'		=>'{"type":"select"}',
		'outlook'	=>'{"type":"radio"}',
		'jigouhao'	=>'{"type":"radio"}',
		'monipan'	=>'{"type":"radio"}',
		'about'		=>'{"type":"textarea","style":"width:100%;height:100px;"}',
		'mark'		=>'{"type":"textarea","style":"width:100%;height:100px;"}'
	);
//枚举
$enum->shuxing = Afunc_enum()->data('crm_shuxing');
$enum->source = Afunc_enum()->data('crm_source');
$enum->bank = Afunc_enum()->data('crm_bank');
$enum->point = Afunc_enum()->data('crm_point');
$enum->sign_status = Afunc_enum()->data('crm_sign_status');
$enum->money = Afunc_enum()->data('crm_money');
$enum->outlook = Afunc_enum()->data('crm_yesorno');
$enum->jigouhao = Afunc_enum()->data('crm_yesorno');
$enum->monipan = Afunc_enum()->data('crm_yesorno');
$enum->xianhuo = array("1"=>"是现货黄金");
//检测
$check->realname=array("type"=>"require");
$check->phone=array("type"=>"require","title"=>"手机号码为11位数字");
$check->qq=array("type"=>"number","title"=>"手机号码为5-10位数字");
//正则
$regexp->mail	= "Acan.regexp.mail";
$regexp->phone	= "Acan.regexp.phone";
$regexp->tel	= "Acan.regexp.tel";
$regexp->fax	= "Acan.regexp.tel";
$regexp->qq		= "/([0-9]{5,10}|0)/";

?>